<?php $baseUrl=$this->assetsUri();$ZGTITLE='模板管理';$ZGHEAD=<<<S
<link rel="stylesheet" type="text/css" href="{$baseUrl}/css/default.css">
<script type="text/javascript" src="{$baseUrl}/js/default.js"></script>
S;
$listHtm='';foreach($ZMODEL["templateList"]as$item){$currUsedHtm=$disableDelCls=$disabledApplyCls='';if($item['isCurrent']){$currUsedHtm='<div class="currUsedBox"><h4>当前使用</h4></div>';$disableDelCls=$disabledApplyCls=' disabled';}$listHtm.=<<<S
<div class="item">
	<a class="itemTrig">
		<div class="thumbnail">
			$currUsedHtm
			<div class="imgCut"><img class="loadingBar" src="{$item['thumbnail']}" alt=""></div>
		</div>
	</a>
	<p class="pageTitle"><a>{$item['name']}</a></p>
	<p class="author">作者：<a></a></p>
	<div class="control invisible">
		<a class="applyBtn$disabledApplyCls" href="$this->baseUri/template/apply?id={$item['id']}" target="_blank">应用</a>
		<!--<a class="detailBtn" href="javascript:void(0);" target="_blank">详细</a>-->
		<a class="delBtn$disableDelCls" href="$this->baseUri/template/delete?id={$item['id']}">删除</a>
	</div>
</div>
S;
}?> <div id="zmsun_sidebar"><div class="wrapper"><div class="sidebarTit"><h2>模板管理</h2></div><div class="sidebarBox" data-widget-zmsunscrollbar><div class="sidebarAccordion"><div class="accordionTit"><h4><a href="<?=$this->baseUri ?>/template"><span>当前使用的模板</span></a></h4></div><div class="accordionTit itemActive"><h4><a href="<?=$this->baseUri ?>/template/list"><span>我的模板</span></a></h4></div><!--<div class="accordionTit"><h4><a href="<?=$this->baseUri ?>/template/insert"><span>新增模板</span></a></h4></div>--><div class="accordionTit"><h4><a href="<?=$this->baseUri ?>/template/package"><span>模板包</span></a></h4></div></div></div></div><div class="switch"><p><i></i></p></div></div><div id="zmsun_main"><div id="zmsun_toolbar"></div><div id="zmsun_a_content"><div class="contentBox"><div class="pageList"><?php print$listHtm;?> <nav class="pageNav hidden"><form method="get" action="#"><div class="grayBtn skipPageBtn"><input type="submit" value="跳页"></div><input type="text" name="num"><input type="hidden" name="path" value="/"></form><div class="num pageNumDisabled"><a href="javascript:void(0);">下一页</a></div><div class="num currentPage"><a href="<?=$this->baseUri ?>/layout?path=/&amp;num=1">1</a></div><div class="num pageNumDisabled"><a href="javascript:void(0);">上一页</a></div></nav></div></div></div></div>